package action;

import java.util.Random;

public abstract class Role {
	protected String name;
	protected int blood;
	protected int currentBlood;
	protected int attackPower;
	Random random = new Random();

	public Role(String name) {
		super();
		this.name = name;
		initBlood();
		initAttackPower();
	}

	private void initBlood() {
		blood = random.nextInt(100) + 200;
	}

	private void initAttackPower() {
		attackPower = 30 + random.nextInt(20);
	}

	public void print() {

	}

	public abstract void hit(Role role);

	public abstract void beHit(int attack);
}
